package com.searchparking.BUS;

import org.json.JSONException;
import org.json.JSONObject;

import android.app.Application;
import android.util.Log;

public class DataSingleton extends Application {
    public static JSONObject data= null;
    private static DataSingleton dataSingleton;
    public static DataSingleton getInstance() {
        return dataSingleton;
    }
    @Override
    public void onCreate() {
        super.onCreate();
        dataSingleton = this;
       /* RestfulWSHelper jsonHelper = new RestfulWSHelper();
        JSONObject dataJson  = jsonHelper.doGet("http://haipt.w.pw/service.php?action=getAllParking");
        data = dataJson;*/
       
    }
    public static JSONObject getData()
    {	
    	return data;
    }
    public static void setData(JSONObject datajson)
    {
    	data = datajson;
    }
    public static String converJsonFormat(String strJson )
    {
    	String str = "{\"data\":"+strJson+"}";
    	return str;
   
    }
}
